Adds a line to be added right after #version in GLSL backend.
This is useful for enabling custom extensions which are outside the scope of SPIRV-Cross.
This can be combined with variable remapping.
A new-line will be added.
While addHeaderLine() is a more generic way of adding arbitrary text to the header
of a GLSL file, requireExtension() should be used when adding extensions since it will
avoid creating collisions with SPIRV-Cross generated extensions.
Code added via add_header_line() is typically backend-specific.
Adds a line to be added right after #version in GLSL backend. This is useful for enabling custom extensions which are outside the scope of SPIRV-Cross. This can be combined with variable remapping. A new-line will be added.
While addHeaderLine() is a more generic way of adding arbitrary text to the header of a GLSL file, requireExtension() should be used when adding extensions since it will avoid creating collisions with SPIRV-Cross generated extensions.
Code added via add_header_line() is typically backend-specific.